import request from '@/utils/request'

export function getCarruleListAPI(obj){
    return request({
        url:'/parking/rule/list',
        method:'GET',
        params:obj
    })
}
/* 添加 */
export function addCarruleListAPI(obj){
    return request({
        url:'/parking/rule',
        method:'POST',
        data:obj
    })
}
/* 删除 */
export function delCarruleListAPI(id){
    return request ({
        url:'/parking/rule/'+id,
        method:'DELETE'
    })
}
/* 查看计费规则详情 */
export function getCarruleListDetailAPI(id){
    return request({
        url:'/parking/rule/'+id,
        method:'GET',
    })
}

/* 编辑 */
export function editCarruleListAPI(obj){
    return request({
        url:'/parking/rule',
        method:'PUT',
        data:obj
    })
}
